import requests


class IHRMLoginApi:
    @classmethod
    def login_request(cls, login_data):
        url = 'http://ihrm2-test.itheima.net/api/sys/login'
        headers = {
            'Content-Type': 'application/json'
        }
        resp = requests.post(url=url, headers=headers,json=login_data)
        return resp